package java_array_list_example;
import java.util.ArrayList;
import java.util.List;
public class JavaArrayList {
	public static void main(String[] args) {
		// declare the List concreate type is ArrayList
		List<String> myArrayList= new ArrayList<String>();
		// add a few Strings to it
		myArrayList.add("Adrian");
		myArrayList.add("Adam");
		// loop over it and print the result to the console
		for(String returnString : myArrayList){
			System.out.println(returnString);
		}
	}
}
